package com.xzh.springCloud.service;

import com.xzh.springCloud.entity.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * @Author: zhiHong
 * @CreateTime: 2023-09-01 11:25
 * @Description:
 */
@FeignClient(value = "seata-account-micro-service-10012")
public interface AccountService {
    @PostMapping("/account/reduce")
    public Result reduce(@RequestParam("userId") Long userId, @RequestParam("money") Integer money);
}
